<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/6/28
 * Time: 13:53
 */

class MysqliService
{

    public $db;

    public function __construct()
    {
        $this->db = mysqli_connect($host = '127.0.0.1', $user = 'root', $password = '123456', $database = 'aigaogao', $port = '3306', $socket = '');
    }

    public function close()
    {
        $this->db->close();
    }
}